package com.buaa.aimall.Utils.Enum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ChargeTypeEnum {
    BY_HOUR("0", "BY_HOUR"),
    BY_TIMES("1", "BY_TIMES"),
    BY_DAY("2", "BY_DAY"),
    BY_WEEK("3", "BY_WEEK"),
    BY_MONTH("4", "BY_MONTH");

    @EnumValue
    public final String code;

    @JsonValue
    public final String name;
}
